package cn.kgc.mapper;

/*
 *@author zhangtao
 *@Date 2023/4/27
 */

import cn.kgc.bean.pojo.EpDangerous;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

public interface EpDangerousMapper {
    /*
     *@author zhangtao
     *@Date 2023/4/27
     * 隐患录入(新增隐患)
     */
    int addEpDangerous(EpDangerous epDangerous);

    /*
     *@author zhangtao
     *@Date 2023/4/27
     * 隐患管理(分页展示隐患)
     */
    List<EpDangerous> getAllEpDangerousInfo();

    /*
     *@author zhangtao
     *@Date 2023/4/27
     * 隐患管理(删除隐患)
     */
    int delEpDangerousInfoById(@Param("id") Integer id);

    /*
     *@author zhangtao
     *@Date 2023/4/27
     * 隐患管理(修改隐患)
     */
    int updateEpDangerousInfo(EpDangerous epDangerous);

    /*
     *@author zhangtao
     *@Date 2023/4/27
     * 隐患管理(模糊查询隐患)
     */
    List<EpDangerous> getSomeDangerousInfo(@Param("department") String department,
                                           @Param("riskLevel") Integer riskLevel,
                                           @Param("fixStaff") String fixStaff,
                                           @Param("checkStaff") String checkStaff,
                                           @Param("startline") String startline,
                                           @Param("endline") String endline);

    List<EpDangerous> getInfoByTime(@Param("startline") String startline,
                                    @Param("endline") String endline);

    List<EpDangerous> getNum();
    List<EpDangerous> getEpDangAll(String staffId);
}
